#ifndef COLLECTIONMODEL_H
#define COLLECTIONMODEL_H

#include "data_global.h"
#include "abstractdata.h"

#include <itemtreemodel.h>

class DATASHARED_EXPORT CollectionTreeModel : public ItemTreeModel
{
    Q_OBJECT

public:

    CollectionTreeModel(QObject* parent = 0);

//    virtual QVariant data(const QModelIndex &index, int role) const;

    virtual Qt::ItemFlags flags(const QModelIndex &index) const;

    virtual void setRoot(AbstractModelItem *root);


protected slots:

    void onChanged();


};


#endif // COLLECTIONMODEL_H

